/**
 * @Author: 陈新林
 * @Date: 2020-12-28
 * @Last Modified by: chenxinlin
 * @Last Modified time: 2020-12-23 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表查询
export const getlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/faultWarn`, {params})

// 查询电池故障单列表(厂端)
export const getbatteryforstorylist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batteryFaultBill/getbatteryforstorylist`, {params})

// 保存投诉接待单信息
export const doupdate = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/faultWarn/doupdate`, params)

// 查询电池故障单列表(店端)
export const getListfordealer = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batteryFaultBill/getListfordealer`, {params})

// 保存投诉接待单信息
export const doupdatebattery = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/batteryFaultBill/doupdatebattery`, params)

// 电池故障处理明细列表查询
export const getdealwithlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/batteryFaultBill/getdealwithlist`, {params})

